import {PORT} from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 用户管理模块
 */

// checkUser
export const getCheckUser = (params) => {
    return http.get(`/api/user/checkUser/`, params);
};

// 获取用户列表
export const getUserList = (params) => {
    return http.get(`/api/user/user/`, params);
};
// 上传头像
export const postAvatarFile = (params) => {
    return http.post(`/api/user/avatarFile/`, params);
};
// 新增用户
export const postUser = (params) => {
    return http.post(`/api/user/user/`, params);
};

// 获取下拉的用户列表
export const getSelectUser = (params) => {
    return http.get(`/api/user/selectUser/`, params);
};

// 批量添加用户
export const BatchAddUser = (params) => {
    return http.post(PORT + `/user/import`, params);
};

